package com.mao.crowd.service.api;

import com.github.pagehelper.PageInfo;
import entity.Admin;

import java.util.List;

/**
 * @author: Administrator
 * @description:
 * @cteate 2021-05-26-21:07
 */
public interface AdminService {
    void saveAdmin(Admin admin);

    List<Admin> getAll();

//    分页插件的接口实现
    PageInfo<Admin> getPageInfo(String keyword,Integer pageNum,Integer pageSize);

    Admin getAdminByLoginAccount(String loginAccount, String userPassword);

    void removeAdmin(Integer adminId);

    Admin getAdminById(Integer adminId);

    void update(Admin admin);

    void saveAdminRoleRelationship(Integer adminId, List<Integer> roleIdList);

    Admin getAdminByLoginAcct(String username);
}
